Skip to content

feat(plugin): expose submit_feedback in both modes, add feedback flag#20

Draft
willleeney wants to merge 1 commit into
mainfrom
feat/expose-feedback
Draft

feat(plugin): expose submit_feedback in both modes, add feedback flag#20
willleeney wants to merge 1 commit into
mainfrom
feat/expose-feedback

Conversation

@willleeney

@willleeney willleeney commented Jul 16, 2026

Copy link
Copy Markdown

Summary

The StackOne MCP server exposes submit_feedback as a global tool on every account (see unified-cloud-api PR #8507). The plugin now inherits it from the MCP catalog in both modes so A2A agents can report feedback:

  • default mode: fetch_tools already returns submit_feedback (the SDK keeps it available under provider/action filters).
  • search_and_execute mode: _build_tools now appends submit_feedback alongside tool_search/tool_execute (from the catalog fetch it already does — no extra request).
  • New feedback flag (default True) threaded to both paths so callers can omit the feedback tool.

⚠️ Depends on

  • stackone-ai-python PR #191 (inherits submit_feedback from MCP, adds feedback kwarg).
  • unified-cloud-api PR #8507 (global submit_feedback MCP tool + /actions/rpc dispatch).

Draft until those merge and the stackone-ai dependency is bumped.

Test plan

  • pytest tests/test_plugin.py — updated call-signature assertions for the new feedback kwarg; added disable-feedback tests for both modes. 22 pass.
  • One pre-existing E501 (line 127, unrelated) left as-is.

🤖 Generated with Claude Code


Summary by cubic

Expose the global submit_feedback tool from the StackOne MCP catalog in both plugin modes, with a new feedback flag to let callers opt out. This enables consistent feedback reporting for A2A agents.

  • New Features

    • Default mode: keeps submit_feedback via fetch_tools (still respects provider/action filters).
    • Search-and-execute mode: _build_tools adds submit_feedback alongside tool_search/tool_execute (no extra requests).
    • New feedback flag (default True) threads through both paths; set to False to omit the tool.
  • Dependencies

    • Requires stackone-ai-python update that inherits submit_feedback from MCP and supports the feedback kwarg.
    • Requires unified-cloud-api exposing submit_feedback as a global MCP tool with RPC dispatch.

Written for commit 9dd76e4. Summary will update on new commits.

Review in cubic

The StackOne MCP server exposes submit_feedback on every account. The plugin
now inherits it in both modes:
- default mode: fetch_tools already returns it (kept available under
  provider/action filters by the SDK);
- search_and_execute mode: _build_tools now appends it alongside
  tool_search/tool_execute.

Adds a feedback flag (default True) threaded to both paths so callers can
omit the feedback tool.

Requires the stackone-ai SDK change that inherits submit_feedback from MCP
and accepts the feedback kwarg.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant